import http from '../util/http.js'

const createUrl = '/collect/create'
const queryByUidUrl = '/collect/queryByUid'
const removeByIdUrl = '/collect/delete'
const querySelectUrl = '/collect/querySelect'
const removeCollectUrl = '/collect/removeCollect'

const create = () =>{
    return http.post(createUrl)
}

const queryByUid = () => {
    return http.get(queryByUidUrl)
}

const removeById =(data) =>{
    return http.del(removeByIdUrl,data)
}

const querySelect = () =>{
    return http.get(querySelectUrl)
}

const removeCollect =() =>{
    return http.del(removeCollectUrl)
}

export default {
    create,queryByUid,querySelect,removeById,removeCollect
}